
#import "HJInputMoreCellData.h"
#import "TUIDefine.h"

static HJInputMoreCellData *TUI_Photo_MoreCell;
static HJInputMoreCellData *TUI_Picture_MoreCell;
static HJInputMoreCellData *TUI_Video_MoreCell;
static HJInputMoreCellData *TUI_File_MoreCell;
static HJInputMoreCellData *TUI_VideoCall_MoreCell;
static HJInputMoreCellData *TUI_AudioCall_MoreCell;
static HJInputMoreCellData *TUI_GroupLivePlay_MoreCell;
static HJInputMoreCellData *TUI_Transfer_MoreCell;


@implementation HJInputMoreCellData

+ (void)initialize
{
//    [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(onChangeLanguage) name:TUIChangeLanguageNotification object:nil];
//    [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(onChangeTheme) name:TUIDidApplyingThemeChangedNotfication object:nil];
}

+ (void)onChangeLanguage
{
    [self resetAllCelData];
}

+ (void)onChangeTheme
{
    [self resetAllCelData];
}

+ (HJInputMoreCellData *)pictureData
{
    if (!TUI_Picture_MoreCell) {
        TUI_Picture_MoreCell = [[HJInputMoreCellData alloc] init];
        TUI_Picture_MoreCell.title = @"Photo";
        TUI_Picture_MoreCell.key = @"album";
        TUI_Picture_MoreCell.image = [UIImage imageNamed:@"chat_album"];

    }
    return TUI_Picture_MoreCell;
}

+ (void)setPictureData:(HJInputMoreCellData *)cameraData
{
    TUI_Picture_MoreCell = cameraData;
}

+ (HJInputMoreCellData *)photoData
{
    if (!TUI_Photo_MoreCell) {
        TUI_Photo_MoreCell = [[HJInputMoreCellData alloc] init];
        TUI_Photo_MoreCell.title = @"Camera";
        TUI_Photo_MoreCell.key = @"camera";
        TUI_Photo_MoreCell.image =  [UIImage imageNamed:@"chat_camera"];
    }
    return TUI_Photo_MoreCell;
}

+ (void)setPhotoData:(HJInputMoreCellData *)pictureData
{
    TUI_Photo_MoreCell = pictureData;
}

+ (HJInputMoreCellData *)videoData
{
    if (!TUI_Video_MoreCell) {
        TUI_Video_MoreCell = [[HJInputMoreCellData alloc] init];
        TUI_Video_MoreCell.title = @"视频";
        TUI_Video_MoreCell.key = @"video";
        TUI_Video_MoreCell.image =  [UIImage imageNamed:@"list_select_icon"];
    }
    return TUI_Video_MoreCell;
}

+ (void)setVideoData:(HJInputMoreCellData *)videoData
{
    TUI_Video_MoreCell = videoData;
}

+ (HJInputMoreCellData *)fileData
{
    if (!TUI_File_MoreCell) {
        TUI_File_MoreCell = [[HJInputMoreCellData alloc] init];
        TUI_File_MoreCell.title = @"文件";
        TUI_File_MoreCell.key = @"file";
        TUI_File_MoreCell.image =  [UIImage imageNamed:@"Photo album-ico(1)"];
    }
    return TUI_File_MoreCell;
}

+ (void)setFileData:(HJInputMoreCellData *)fileData
{
    TUI_File_MoreCell = fileData;
}

+ (void)setTransferData:(HJInputMoreCellData *)transferData {
    TUI_Transfer_MoreCell = transferData;
}

+ (HJInputMoreCellData *)transferData {
    if (!TUI_Transfer_MoreCell) {
        TUI_Transfer_MoreCell = [[HJInputMoreCellData alloc] init];
        TUI_Transfer_MoreCell.title = @"Transfer";
        TUI_Transfer_MoreCell.key = @"transfer";
        TUI_Transfer_MoreCell.image =  [UIImage imageNamed:@"chat_transfer"];
    }
    return TUI_Transfer_MoreCell;
}

+ (void)resetAllCelData {
    TUI_Photo_MoreCell = nil;
    TUI_Picture_MoreCell = nil;
    TUI_Video_MoreCell = nil;
    TUI_File_MoreCell = nil;
    TUI_VideoCall_MoreCell = nil;
    TUI_AudioCall_MoreCell = nil;
    TUI_GroupLivePlay_MoreCell = nil;
    TUI_Transfer_MoreCell = nil;
}

@end
